package com.pcbly.web.bean.system;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.jbpm.api.identity.Group;
import org.jbpm.api.task.Participation;

import com.pcbly.web.bean.AbstractBaseBean;

public class GroupBean extends AbstractBaseBean implements Group {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4109236122375169886L;
	
	private String groupName;
	
	private String groupDescn;
	
	

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupDescn() {
		return groupDescn;
	}

	public void setGroupDescn(String groupDescn) {
		this.groupDescn = groupDescn;
	}

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		return EqualsBuilder.reflectionEquals(this, object);
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return groupName;
	}

	@Override
	public String getType() {//作为参与的侯选人
		// TODO Auto-generated method stub
		return Participation.CANDIDATE;
	}

}
